import {Routes} from '@angular/router';
import {LayoutComponent} from './layout/layout.component';

export const appRoutes: Routes = [
  {
    path: '',
    redirectTo: 'master',
    pathMatch: 'full'
  },
  {
    path: 'login',
    loadChildren: './login/login.module#LoginModule'
  },
  {
    path: 'master',
    loadChildren: './master/master.module#MasterModule',
  },
  {
    path: '**',
    redirectTo: 'master'
  }
];

